{extend name="user/index" /}

{block name="title"}
<title>[ Create Admin ]</title>
{/block}

{block name="css"}

{/block}

{block name="main"}

<div class="container  mt50">
    <div class="row">
        <div class="col-md-6">
            <h1>新增管理员</h1>
            <hr>
            <form class="form-horizontal" action="{:url('index/user/saveadmin')}" method="post">
                <div class="form-group">
                    <label for="user" class="col-md-2 input-lg">账号：</label>
                    <div class="col-md-10">
                        <input type="text" name="name" class="form-control input-lg" id="user"
                               placeholder="管理员账号">
                    </div>
                </div>
                <div class="form-group">
                    <label for="pass" class="col-md-2 input-lg">密码：</label>
                    <div class="col-md-10">
                        <input type="password" name="pwd" class="form-control input-lg" id="pass"
                               placeholder="密码">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <button type="submit" class="btn btn-lg btn-success">执行新增</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}

{block name="js"}{/block}
